package com.kust.smarthome.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kust.smarthome.web.model.UserAddress;
import com.kust.smarthome.web.vo.UserAddressVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author iAuzre
 * @since 2021-07-09
 */
public interface IUserAddressService extends IService<UserAddress> {

    int insert(UserAddress userAddress);

    List<UserAddress> selectByUserId(Integer userId);

    String updateUserAddress(Integer userId, UserAddressVo userAddressVo);

    boolean absoluteAddress(Integer userId, Integer id);

    UserAddress getAbsoluteAddress(Integer userId);

    boolean deleteById(Integer UserId, Integer addressId);
}
